package com.hubei.car.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 公司属性表
 * @author huanghaisheng
 * @create 2020-1-17
 */
@ApiModel(value="公司属性")
@Data
@TableName(value = "company_property")
@Accessors(chain = true)
public class CompanyProperty implements Serializable {

    @TableId(value = "id")
    @ApiModelProperty(value="公司属性id")
    private Long id;

    @TableField(value = "content")
    @ApiModelProperty(value="内容")
    @NotEmpty(message = "content不能为空")
    private String content;

    @TableField(value = "type")
    @ApiModelProperty(value="1：公司介绍", example = "1")
    @NotEmpty(message = "type不能为空")
    private Integer type;

    @TableField(value = "update_date")
    @ApiModelProperty(value="更新时间",hidden = true)
    private Timestamp updateDate;


}
